<?php echo $this->render('/manage/header.phtml');?>
</head>
<body>
<div id="body-wrapper">
<?php echo $this->render('/manage/sidebar.phtml');?>
<div id="main-content">
    <h2>其他页面管理</h2>
    <div class="clear"></div>
    <div class="content-box">
      <div class="content-box-header">
        <h3>Content box</h3>
        <div class="clear"></div>
      </div>
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
        <form method="post" action="<?php echo APPLICATION_URL; ?>/manage/save-other-pages">
        	<table>
        		<thead>
        			<tr>
        			    <th>页面ID</th>
        				<th>页面名称</th>
        				<th>页面对应的文章ID</th>
        				<th>操作</th>
<!--         				<th>操作</th> -->
        			</tr>
        		</thead>
        		<tbody>
        			<?php
        				$tableInfo = Zend_Registry::get('database')->page;
        				foreach ($this->otherpages as $value) {
					?>
        			<tr>
        				<td><input readOnly style="width:10px;border:none;" name="<?php echo $tableInfo->id;?>[]" type="text" value="<?php echo $value[$tableInfo->id];?>" /></td>
        				<td><input name="<?php echo $tableInfo->name;?>[]" type="text" value="<?php echo $value[$tableInfo->name];?>" /></td>
        				<td><input name="<?php echo $tableInfo->postid;?>[]" type="text" value="<?php echo $value[$tableInfo->postid];?>" /></td>
        				<td><a target="_blank" href="<?php echo APPLICATION_URL; ?>/manage/edit-article/id/<?php echo $value[$tableInfo->postid];?>" title="Edit"><img src="/public/images/admin/icons/pencil.png" alt="Edit"></a></td>
        			</tr>
        			<?php }?>
        			<tr>
        				<td colspan="6" style="text-align: center;">
        					<input type="submit" value="提交" />
        				</td>
        			</tr>
        		</tbody>
        	</table>
        </form>
        </div>
      </div>
    </div>
    <div class="clear"></div>
<?php echo $this->render('/manage/footer.phtml');?>
</div>
</div>
</body>
</html>